package com.gss.armory.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;



@Entity
@Table(name="USER_ACTIVITY_GROUP_MAPPING")
public class UserActivityGroup implements Serializable{
	
	public enum DocActivityType {
		View,Print
	};
	private String username;

	private DocActivityType activityType;
	private Long docId;
	
	@Id
	@Column(name="UAG_USER_ID",length=20)
	public String getUsername() {
		// TODO Auto-generated method stub
		return username;
	}
	@Id
	@Column(name="UAG_DOC_ID",length=20)
	public Long getdocId() {
		// TODO Auto-generated method stub
		return docId;
	}
	
	@Id
	@Column(name="DOC_ACTIVTY_TYPE",nullable=false)
	@Enumerated(value=EnumType.STRING)
	public DocActivityType getActivityType() {
		return activityType;
	}
	public void setActivityType(DocActivityType activityType) {
		this.activityType = activityType;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public void setdocId(Long docId) {
		this.docId = docId;
	}
	@Override
	public String toString() {
		return "UserActivityGroup [username=" + username + ", activityType="
				+ activityType + ", docId=" + docId + "]";
	}
	
	

}
